package oop_06.homework02;

public class Test {
    public static void main(String[] args) {

        Person person = new Person();
        Dailup dailup ;
        Play play;
        TakePhoto takePhoto;

        dailup=new Telephone();
        person.dailup(dailup);
        play=new Dvd();
        person.play(play);
        takePhoto=new Camera();
        person.takePhone(takePhoto);




        dailup=new Mobile();
        person.dailup(dailup);
        play=new Mobile();
        person.play(play);
        takePhoto=new Mobile();
        person.takePhone(takePhoto);

    }
}
